const {
  mysql
} = require('../qcloud')
module.exports = async ctx => {
  let {
    name,
    videoUrl,
    imgUrl,
    lang
  } = ctx.request.body;
//   console.log(name, videoUrl, imgUrl, lang);
  await mysql('video').insert({
    name: name,
    img_url: imgUrl,
    video_url: videoUrl,
    lang: lang
  })
  ctx.state.data = {
    msg: 'success'
  }
};
